package com.ruoyi.test;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

//@dujg 关闭依赖的数据源，项目这样才能启动
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })

/*
1,Jone,18,test1@baomidou.com
2,Jack,20,test2@baomidou.com
3,Tom,28,test3@baomidou.com
4,Sandy,21,test4@baomidou.com
5,Billie,24,test5@baomidou.com
*/

@SpringBootApplication
//扫描mapper类，这样mapper类上不用加注解了
@MapperScan({"com.ruoyi.*.mapper"})
@EnableElasticsearchRepositories(basePackages = {"com.ruoyi.test.*"})
public class RuoYiTestApplication
{
    public static void main(String[] args)
    {
        SpringApplication.run(RuoYiTestApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ 测试ruoyi-test启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " .-------.       ____     __        \n" +
                " |  _ _   \\      \\   \\   /  /    \n" +
                " | ( ' )  |       \\  _. /  '       \n" +
                " |(_ o _) /        _( )_ .'         \n" +
                " | (_,_).' __  ___(_ o _)'          \n" +
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
                " |  | \\ `'   /|   `-'  /           \n" +
                " |  |  \\    /  \\      /           \n" +
                " ''-'   `'-'    `-..-'              ");

        // 根据 id 查询单个实体
//        User user = Db.getById(1L, User.class);
//        System.out.println(user.getName());
    }
}
